<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="/blog/APP/Modules/Index/Tpl/Public/Css/common.css" />
	
	<script type="text/JavaScript" src='/blog/APP/Modules/Index/Tpl/Public/Js/jquery-1.7.2.min.js'></script>
	<script type="text/JavaScript" src='/blog/APP/Modules/Index/Tpl/Public/Js/common.js'></script>
<link rel="stylesheet" type="text/css" href="/blog/DATA/ueditor1_4_3/third-party/SyntaxHighlighter/shCoreDefault.css">
<script type="text/javascript" src="/blog/DATA/ueditor1_4_3/third-party/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript">
	SyntaxHighlighter.all();
</script>
<link rel="stylesheet" type="text/css" href="/blog/APP/Modules/Index/Tpl/Public/Css/show.css" />
</head>
<body>
<!--头部-->
	<div class='top-list-wrap'>
		<div class='top-list'>
			<ul class='l-list'>
				<li><a href="http://www.houdunwang.com" target='_blank'>后盾网</a></li>
				<li><a href="http://bbs.houdunwang.com" target='_blank'>后盾网论坛</a></li>
				<li><a href="http://study.houdunwang.com" target='_blank'>后盾学习社区</a></li>
			</ul>
			<ul class='r-list'>
				<li><a href="http://www.hdphp.com" target='_blank'>HDPHP框架</a></li>
				<li><a href="http://bbs.houdunwang.com" target='_blank'>免费视频教程</a></li>
			</ul>
		</div>
	</div>


	<div class='top-search-wrap'>
		<div class='top-search'>
			<a href="http://bbs.houdunwang.com" target='_blank' class='logo'>
				<img src="./Images/logo.png"/>
			</a>
			<div class='search-wrap'>
				<form action="" method='get'>
					<input type="text" name='keyword' class='search-content'/>
					<input type="submit" name='search' value='搜索'/>
				</form>
			</div>
		</div>
	</div>


	<div class='top-nav-wrap'>
		<ul class='nav-lv1'>
			<li class='nav-lv1-li'>
				<a href="/blog/t" class='top-cate'>博客首页</a>
			</li>
			<li class='nav-lv1-li'>
					<a href="/blog/c_1" class='top-cate'>HTML</a>
					<ul>
					   					</ul>
				</li><li class='nav-lv1-li'>
					<a href="/blog/c_2" class='top-cate'>DIV+CSS</a>
					<ul>
					   					</ul>
				</li><li class='nav-lv1-li'>
					<a href="/blog/c_3" class='top-cate'>JavaScript</a>
					<ul>
					   <li><a href="/blog/c_9">Ajax</a></li><li><a href="/blog/c_8">jQuery</a></li>					</ul>
				</li><li class='nav-lv1-li'>
					<a href="/blog/c_5" class='top-cate'>Linux</a>
					<ul>
					   					</ul>
				</li><li class='nav-lv1-li'>
					<a href="/blog/c_10" class='top-cate'>Php</a>
					<ul>
					   					</ul>
				</li><li class='nav-lv1-li'>
					<a href="/blog/c_4" class='top-cate'>字符集</a>
					<ul>
					   <li><a href="/blog/c_14">函数</a></li><li><a href="/blog/c_15">类</a></li>					</ul>
				</li>  
		</ul>
	</div>
<!--主体-->
<div class='main'>
	<div class='main-left'>
			<div class='location'>
				<a href="/blog/r.html">首页</a>
				><a href="/blog/c_10.html">Php</a>			</div>
			<div class="title">
				<p>5</p>
				<div>
					<span class='fl'>发布于：2015年07月29日</span>
					<span class='fr'>已被阅读100次</span>
				</div>
			</div>
			<div class='content' style="word-break:normal;">
				<p>&lt;?php</p><p>class AttributeAction extends ComAction{</p><p>&nbsp; &nbsp;public function Index(){ &nbsp; <span class="Apple-tab-span" style="white-space:pre"></span>&nbsp;</p><p>&nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre"></span> $this-&gt;attr=M(&#39;attr&#39;)-&gt;select();</p><p>&nbsp; &nbsp; &nbsp;$this-&gt;display();</p><p>&nbsp; &nbsp;} &nbsp;</p><p>&nbsp; &nbsp;public function AddAttr(){</p><p>&nbsp; &nbsp; &nbsp;$this-&gt;display();</p><p>&nbsp; &nbsp;} &nbsp;</p><p>&nbsp; &nbsp;public function AddAttrRun(){ &nbsp;<span class="Apple-tab-span" style="white-space:pre"></span></p><p>&nbsp; &nbsp; if(M(&#39;attr&#39;)-&gt;add($_POST)){</p><p>&nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre"></span>$this-&gt;success(&#39;保存成功&#39;);</p><p>&nbsp; &nbsp; }else{</p><p>&nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;error(&#39;保存失败&#39;);</p><p>&nbsp; &nbsp; }</p><p>&nbsp; &nbsp;<span class="Apple-tab-span" style="white-space:pre"></span></p><p>&nbsp; &nbsp;}</p><p>}</p><pre class="brush:php;toolbar:false"><br/></pre><p><br/></p>			</div>
		</div>

<!--主体右侧-->
		<div class='main-right'>
		    <dl>		       
				<dt>热门博文</dt>
				<dd>
						<a href='/blog/23.html'>Html带博文摘要</a>
						<span>(120)</span>
					</dd><dd>
						<a href='/blog/8.html'>2</a>
						<span>(101)</span>
					</dd><dd>
						<a href='/blog/3.html'>第三篇博文</a>
						<span>(100)</span>
					</dd><dd>
						<a href='/blog/6.html'>html 3个属性博文</a>
						<span>(100)</span>
					</dd>		
			</dl>
			<!-- 
<dl>
	<dt>热门博文</dt>
	<dd>
		<a href="/blog/show-23.html">Html带博文摘要</a>
		<span>(120)</span>
	</dd><dd>
		<a href="/blog/show-8.html">2</a>
		<span>(101)</span>
	</dd><dd>
		<a href="/blog/show-3.html">第三篇博文</a>
		<span>(100)</span>
	</dd><dd>
		<a href="/blog/show-6.html">html 3个属性博文</a>
		<span>(100)</span>
	</dd><dd>
		<a href="/blog/show-7.html">1</a>
		<span>(100)</span>
	</dd></dl> -->
      

			<dl>  
				<dt>最发布发</dt>
			<!-- 用自定义标签显示最新发布内容 -->	
			   <dd>
						<a href='/blog/39.html'>6</a>
						<span>(100)</span>
					</dd><dd>
						<a href='/blog/38.html'>5</a>
						<span>(100)</span>
					</dd><dd>
						<a href='/blog/37.html'>4</a>
						<span>(100)</span>
					</dd><dd>
						<a href='/blog/36.html'>PHP自定义类</a>
						<span>(100)</span>
					</dd><dd>
						<a href='/blog/35.html'>2</a>
						<span>(100)</span>
					</dd>			</dl>
		<!-- 用Widget工具显示最新发布内容 -->
         <!-- 
<dl>
	<dt>最发布发</dt>
	<dd>
		<a href="">6</a>
		<span>(100)</span>
	</dd><dd>
		<a href="">5</a>
		<span>(100)</span>
	</dd><dd>
		<a href="">4</a>
		<span>(100)</span>
	</dd><dd>
		<a href="">PHP自定义类</a>
		<span>(100)</span>
	</dd><dd>
		<a href="">2</a>
		<span>(100)</span>
	</dd></dl> -->

         <!-- 用Widget工具显示友情链接内容 -->
         <dl>
	<dt>友情连接</dt>
	<dd>
			<a href="/blog/3">第三篇博文</a>
		</dd><dd>
			<a href="/blog/6">html 3个属性博文</a>
		</dd><dd>
			<a href="/blog/7">1</a>
		</dd><dd>
			<a href="/blog/8">2</a>
		</dd></dl>			<!-- <dl>
				<dt>友情连接</dt>
				<dd>
						<a href='/blog/23.html'>Html带博文摘要</a>
					</dd><dd>
						<a href='/blog/8.html'>2</a>
					</dd><dd>
						<a href='/blog/3.html'>第三篇博文</a>
					</dd><dd>
						<a href='/blog/6.html'>html 3个属性博文</a>
					</dd>			</dl> -->
		</div>
	</div>